Release 10.1A: OpenEdge Development:
Programming Interfaces
Namespace Processing
Namespace processing is enabled by default.
To disable it, set
SUPPRESS-NAMESPACE-PROCESSINGtoTRUE.XML Namespace processing is potentially complex. But here is a summary of the behavior to expect from a Progress SAX application.
Namespace declarations
An XML document that uses namespaces has one or more Namespace declarations, which appear as attributes of elements. A namespace declaration might appear as an attribute of any element; frequently the document element (the one that encloses all of the other elements) has the namespace declaration or declarations.
A namespace declaration associates a prefix with a URI. Once associated, the prefix might appear with element names, attributes names, or both, to distinguish the names from identical names that might mean something else. For example, an XML element whose name is “memory” might mean completely different things, and have different valid attributes, depending on whether it appears in a computer inventory or in a psychological report. You can distinguish the uses by having a computer-inventory namespace and a psychological-report namespace.
In the SAX2 interface, XML Namespaces affect the values of the parameters of StartElement and EndElement, and the attribute data in the attributes parameter of StartElement. There can be slight variations in the way that Progress SAX handles namespace processing.
Namespace processing’s effects
In Progress SAX, Namespace processing affects the behavior of:
Table 20–6 describes the effect of Namespace processing on StartElement and EndElement.
Table 20–7 describes the effect of Namespace processing on Attributes data.
.
For more information on Namespace processing, see the reference entry for the
SUPPRESS-NAMESPACE-PROCESSINGattribute in the OpenEdge Development: Progress 4GL Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |